package demo.client;

import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
import io.netty.channel.SimpleChannelInboundHandler;

import java.util.HashMap;
import java.util.Map;

public class ClientHandler extends ChannelInboundHandlerAdapter {
    private final ByteBuf message;

    public ClientHandler() {
        message = Unpooled.buffer(256);
        for (int i = 0; i < message.capacity(); i++) {
            message.writeByte(i);
        }
    }

    @Override
    public void channelActive(ChannelHandlerContext ctx) throws Exception {



//        ctx.writeAndFlush("sdfafasdfsdafsdfdas");
    }


}
